import request from '@/utils/request'

// 查询商户信息列表
export function listposInfo(query) {
    return request({
        url: '/enterprise/posInfo/list',
        method: 'get',
        params: query
    })
}

// 查询商户信息详细
export function getposInfo(id) {
    return request({
        url: '/enterprise/posInfo/' + id,
        method: 'get'
    })
}

// 新增商户信息
export function addposInfo(data) {
    return request({
        url: '/enterprise/posInfo',
        method: 'post',
        data: data
    })
}

// 修改商户信息
export function updateposInfo(data) {
    return request({
        url: '/enterprise/posInfo',
        method: 'put',
        data: data
    })
}

// 删除商户信息
export function delposInfo(id) {
    return request({
        url: '/enterprise/posInfo/' + id,
        method: 'delete'
    })
}

// 导出商户信息
export function exportposInfo(query) {
    return request({
        url: '/enterprise/posInfo/export',
        method: 'get',
        params: query
    })
}

export function statistics() {
    return request({
        url: '/enterprise/posInfo/statistics',
        method: 'get'
    })
}

export function examine(data) {
    return request({
        url: '/enterprise/posInfo/examine',
        method: 'post',
        data: data
    })
}